<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
<meta name="decorator" content="moduleList" />
<script
	src="${staticPath}/lib/datetimepicker/0.0.11/js/bootstrap-datetimepicker.min.js"
	type="text/javascript"></script>
<script
	src="${staticPath}/lib/datetimepicker/0.0.11/js/locales/bootstrap-datetimepicker.zh-CN.js"
	type="text/javascript"></script>
<script src="${staticPath}/lib/accounting/0.3.2/accounting.min.js"
	type="text/javascript"></script>

<script type="text/javascript">
	$(document).ready(
			function() {
				$(".o-a-form-date").datetimepicker({
					language : 'zh-CN',
					autoclose : true,
					minView : 2,
					todayBtn : 1,
					pickerPosition : "bottom-left"
				});
			});
</script>
	
</head>
<body>
<form:form name="listForm" modelAttribute="supplierRebate" method="post" class="form-inline" role="form">
		<ol class="breadcrumb map_1">
			<li><a href="${contextPath}/index">首页</a></li>
			<li><a href="${contextPath}/biz/example/form/elements?navId=${navId}">结算对账</a></li>
			<li class="active">返利单</li>
		</ol>
		<div class="o-l-search-builder f_1">
		 <div id="statement-search-builder" class="collapse" style="height:auto;">
	             <div class="f_2">
	                 <div class="form-group col-sm-6">
	                      <label for="inputEmail3" class="col-sm-3 control-label f_4">供应商编号</label>
	                      <div class="col-sm-9 f_6">
	                        <form:input id="supplierNo" path="supplierNo" class="f_5" placeholder="供应商编号"/>
	                      </div>
	                  </div>

	             </div>
	         </div>
	         <div class="f_8">
	              <div class="f_2">
	                  <div class="col-sm-8 f_6">
	                       <form:input id="notifyNo" path="notifyNo" class="f_5" placeholder="通知单"/>
	                  </div>
	                  <button type="submit" class="btn btn-warning btn_1">查&nbsp;询</button>
	             </div>
	         </div>
	         <div class="o-l-chevron-down"><a href="#" class="btn btn-default" data-toggle="collapse" data-target="#statement-search-builder" id="chevronDownBtn" role="button"><span id="glyphiconspan" class="glyphicon glyphicon-chevron-down"></span></a>
	         </div>
	     </div>
		<tags:message content="${message}"/>
		<div class="o-l-search-builder f_9">
			<table class="table table-striped table-hover o-l-table table-bordered" id="table1">
				<thead class="t_1">
					<tr>
						<th style="width: 1px"><input type="checkbox" data-ckb="all"></th>
						<th>通知单号</th>
						<th>合同号</th>
						<th>合同名</th>
						<th>供应商编号</th>
						<th>金额</th>
						<th>扣款方式</th>
					</tr>
				</thead>
				<tbody>
					<c:forEach items="${page.list}" var="supplierRebate">
						<tr>
							<td class="o-l-tab-ckb">
								<input type="checkbox" data-ckb-id="${supplierRebate.id}">
							</td>
							<td>${supplierRebate.notifyNo}</td>
							<td>${supplierRebate.contractNo}</td>
							<td>${supplierRebate.contractName}</td>
							<td>${supplierRebate.supplierNo}</td>
							<td>${supplierRebate.amount}</td>
							<td>${supplierRebate.paymentMethod}</td>
						</tr>
					</c:forEach>
				</tbody>
			</table>
        </div>
		<pager:pager pageSize="${page.pageSize}" pageNo="${page.pageNo}" url="" total="${page.total}"/>
		<script type="text/javascript" src="${staticPath}/js/list.js"></script>
  </form:form>
</body>
</html>